package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RecordInfoMapper;
import com.ruoyi.system.domain.RecordInfo;
import com.ruoyi.system.service.IRecordInfoService;

/**
 * 投喂记录Service业务层处理
 * 
 * @author fxk
 * @date 2023-06-20
 */
@Service
public class RecordInfoServiceImpl implements IRecordInfoService 
{
    @Autowired
    private RecordInfoMapper recordInfoMapper;

    /**
     * 查询投喂记录
     * 
     * @param recordId 投喂记录主键
     * @return 投喂记录
     */
    @Override
    public RecordInfo selectRecordInfoByRecordId(Long recordId)
    {
        return recordInfoMapper.selectRecordInfoByRecordId(recordId);
    }

    /**
     * 查询投喂记录列表
     * 
     * @param recordInfo 投喂记录
     * @return 投喂记录
     */
    @Override
    public List<RecordInfo> selectRecordInfoList(RecordInfo recordInfo)
    {
        return recordInfoMapper.selectRecordInfoList(recordInfo);
    }

    /**
     * 新增投喂记录
     * 
     * @param recordInfo 投喂记录
     * @return 结果
     */
    @Override
    public int insertRecordInfo(RecordInfo recordInfo)
    {
        return recordInfoMapper.insertRecordInfo(recordInfo);
    }

    /**
     * 修改投喂记录
     * 
     * @param recordInfo 投喂记录
     * @return 结果
     */
    @Override
    public int updateRecordInfo(RecordInfo recordInfo)
    {
        return recordInfoMapper.updateRecordInfo(recordInfo);
    }

    /**
     * 批量删除投喂记录
     * 
     * @param recordIds 需要删除的投喂记录主键
     * @return 结果
     */
    @Override
    public int deleteRecordInfoByRecordIds(Long[] recordIds)
    {
        return recordInfoMapper.deleteRecordInfoByRecordIds(recordIds);
    }

    /**
     * 删除投喂记录信息
     * 
     * @param recordId 投喂记录主键
     * @return 结果
     */
    @Override
    public int deleteRecordInfoByRecordId(Long recordId)
    {
        return recordInfoMapper.deleteRecordInfoByRecordId(recordId);
    }
}
